--[[
 -- *名称:HelpLayerPart
 -- *描述:房间内玩法弹框
 -- *版权:Copyright © 2016-2018 深圳市三只小熊科技有限公司 版权所有
 -- *作者:Terry
 -- *创建日期:2017-10-16
 -- *修改日期:2017-10-16
 ]]
local CURRENT_MODULE_NAME = ...
local HelpLayerPart = class("HelpLayerPart",PokerPartBase) --登录模块
HelpLayerPart.DEFAULT_PART = {}
HelpLayerPart.DEFAULT_VIEW = "helplayer"

---
 -- [ctor 默认part构造方法]
 -- @DateTime 2017-09-20
 -- @param    owner [description]
 -- @param    data [description]
 -- @return    [description]
 --
function HelpLayerPart:ctor(owner, data)
    HelpLayerPart.super.ctor(self, owner, data)
    self._data = data;
end


---
 -- [activate 默认激活该part调用方法]
 -- @DateTime 2017-09-20
 -- @param    data [description]
 -- @return    [description]
 --
function HelpLayerPart:activate(data)
	HelpLayerPart.super.activate(self, CURRENT_MODULE_NAME)
end

---
 -- [deactivate 销毁该part调用方法]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function HelpLayerPart:deactivate()
    HelpLayerPart.super.deactivate(self,CURRENT_MODULE_NAME)
    if self.view == nil then
		return
	else
		self.view:removeSelf()
		self.view =  nil
	end
end

---
 -- [getPartId 获取该part的partId]
 -- @DateTime 2017-09-20
 -- @return   [description]
 --
function HelpLayerPart:getPartId()
	-- body
	return "DdzHelpLayerPart"
end

function HelpLayerPart:showView(  )
	self:updateView("showView");
end

HelpLayerPart.eventFuncMap = {
	[DdzEventConfig.HELP_BTN_CLICK]		= HelpLayerPart.showView;
};

return HelpLayerPart 